//
//  RssDetailViewController.m
//  iBole
//
//  Created by Tao Chen on 12-3-11.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//
/*This file is part of iBole.
 
 iBole is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 
 iBole is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
 */
#import "RssDetailViewController.h"

@implementation RssDetailViewController
{
    NSString * info;
    UIWebView * webView;
}

@synthesize info;
@synthesize webView;

-(void) viewDidLoad
{
    [super viewDidLoad];
}
-(void)viewDidUnload
{
    self.info = nil;
    self.webView = nil;
    [super viewDidUnload];
}
-(void)dealloc
{
    [webView release];
    [info release];
    [super dealloc];
}
-(void)viewWillAppear:(BOOL)animated
{
    NSData * data = [info dataUsingEncoding:NSUTF8StringEncoding];
    [self.webView loadData:data MIMEType:@"text/html" textEncodingName:@"utf-8" baseURL:nil];
}
@end
